<?php 
	$this->load->database();
//	$query = $this->db->query('select * from album order by name asc');
	$zebra = 0;
	$temp = "#EFEFEF";
	foreach ($query->result() as $row):
		
		if($temp=='#EFEFEF'){
	 		$bg='#e0e0e0';
	 		$temp = 1;
	 	} else {
	 		$bg='#EFEFEF';
	 		$temp = 0;
	 	}
		$que = $this->db->query("select first_name,last_name from info where id_member='$row->id_member' limit 1");
		foreach ($que->result() as $res):
			$row->name = $res->first_name." ".$res->last_name;
		endforeach;
		$row->comment = nl2br($row->comment);
		$row->comment = wordwrap($row->comment,65,"\n",1)
//	if($row->cover=="" || $row->cover==0){
//		$row->cover = "images/nopicture.jpg";
//	}
	
		
		 	
?>
  <tr bgcolor="<?php echo $bg?>" id="globalLink">
  <td valign="top">
  <a href="<?php echo site_url(array('member','project',$row->id_member))?>">
    <img width="50" height="50" src="<?php //echo $row->cover?>" /></a>
    </td>
  <td valign="top" class="comment" width="90%">
  <b><a href="<?php echo site_url(array('member','project',$row->id_member))?>"><?php echo $row->name ?></a></b> : <?php echo $row->comment ?><br />
    posted at <b><?php echo $row->posted ?></b>
    </td>
  </tr>
<?php endforeach;?>